#pragma once

#include <sys_def.h>

// AHB寄存器第0到7位的定义
typedef struct {
	u8_s DMA0 : 1;
	u8_s DMA1 : 1;
	u8_s SRAMSP : 1;
	u8_s : 1;
	u8_s FMCSP : 1;
	u8_s : 1;
	u8_s CRC : 1;
	u8_s : 1;
} rcu_ahb_0_7_s;

_Static_assert(sizeof(rcu_ahb_0_7_s) == 1,
	       "Struct rcu_ahb_0_7_s defined error!");

// AHB型寄存器第8到15位的定义
typedef struct {
	u8_s EXMC : 1;
	u8_s : 3;
	u8_s USBFS : 1;
	u8_s : 3;
} rcu_ahb_8_15_s;

_Static_assert(sizeof(rcu_ahb_8_15_s) == 1,
	       "Struct rcu_ahb_8_15_s defined error!");
